package com.du.dumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.du.dumall.common.utils.PageUtils;
import com.du.dumall.product.entity.AttrEntity;
import com.du.dumall.product.vo.AttrVo;
import com.du.dumall.product.vo.PageAttrVo;
import com.du.dumall.product.vo.WithattrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dupeng
 * @email 13576245006@163.com
 * @date 2021-12-20 17:10:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBasePage(Map<String, Object> params, Long catId, String attrType);

    PageAttrVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> listRelation(Long attrGroupId);

    PageUtils noattrRelation(Map<String, Object> params, Long attrGroupId);

    List<WithattrVo> withattrList(Long catalogId);
}

